package com.gry.mystring;

import java.util.Scanner;

public class StringDemo3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输");
        String s = sc.next();
        String s1 = reverser(s);
        System.out.println(s1);
    }
    public static String reverser(String str){
        String result = "";
        for (int length = str.length()-1; length >= 0; length--) {
            char c = str.charAt(length);
            result = result + c;
        }
        return result;
    }
}
